import request from '@/config/axios'

export const draftApi = {
  /**
   * 获取发布列表
   * @param params
   * @returns
   */
  getList: async (data) => await request.get({ url: '/dy/playlet-publish/page', data }),

  /**
   * 视频融合
   * @param files 文件数组 
   * @param outputFormat 先固定'mp4' 
   * @param title 标题 
   * @param videoRemark 内容 
   * @returns 
   */
  setVideoMerge: async data => await request.upload({ url: '/video/merge/create', timeout: 0, data }),

  /**
   * 获取任务列表
   * @param data 
   * @returns 
   */
  getMaskList: async (params) => await request.get({ url: '/dy/playlet-publish/page', params }),
}
